#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include "clickedeventfilter.h"
#include "weatherwindow.h"
#include "musicwindow.h"
#include "videowindow.h"
#include "mapwindow.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void timeProcessing();

public slots:
    void showTime();
    void toWindow(QObject *watched);

private slots:
    void on_btn_timeout_clicked();

    void on_btn_goon_clicked();

private:
    Ui::MainWindow *ui;
    QTimer *timer;
    ClickedEventFilter *eventFilter;
    WeatherWindow *weather;
    MusicWindow *music;
    VideoWindow *video;
    MapWindow *map;
};
#endif // MAINWINDOW_H
